package com.ming.yygh.hosp.repository;

import com.ming.yygh.model.hosp.Hospital;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author Light
 * @date 2021/12/1 17:51
 */
@Repository
public interface HospitalRepository extends MongoRepository<Hospital, String> {
    // 判断是否存在数据
    Hospital getHospitalByHoscode(String hoscode);

    // 根据医院名称查询
    List<Hospital> getHospitalByHosnameLike(String hosname);
}
